home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSUIEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  210 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSUIEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSUIEvent_h__
  6. #define __gen_nsIDOMNSUIEvent_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNSUIEvent */
  19. #define NS_IDOMNSUIEVENT_IID_STR "a6cf90c4-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMNSUIEVENT_IID \
  22.   {0xa6cf90c4, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMNSUIEvent : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSUIEVENT_IID)
  29.  
  30.   enum { SCROLL_PAGE_UP = -32768 };
  31.  
  32.   enum { SCROLL_PAGE_DOWN = 32768 };
  33.  
  34.   /* boolean getPreventDefault (); */
  35.   NS_IMETHOD GetPreventDefault(PRBool *_retval) = 0;
  36.  
  37.   /* readonly attribute long layerX; */
  38.   NS_IMETHOD GetLayerX(PRInt32 *aLayerX) = 0;
  39.  
  40.   /* readonly attribute long layerY; */
  41.   NS_IMETHOD GetLayerY(PRInt32 *aLayerY) = 0;
  42.  
  43.   /* readonly attribute long pageX; */
  44.   NS_IMETHOD GetPageX(PRInt32 *aPageX) = 0;
  45.  
  46.   /* readonly attribute long pageY; */
  47.   NS_IMETHOD GetPageY(PRInt32 *aPageY) = 0;
  48.  
  49.   /* readonly attribute unsigned long which; */
  50.   NS_IMETHOD GetWhich(PRUint32 *aWhich) = 0;
  51.  
  52.   /* readonly attribute nsIDOMNode rangeParent; */
  53.   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) = 0;
  54.  
  55.   /* readonly attribute long rangeOffset; */
  56.   NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) = 0;
  57.  
  58.   /* attribute boolean cancelBubble; */
  59.   NS_IMETHOD GetCancelBubble(PRBool *aCancelBubble) = 0;
  60.   NS_IMETHOD SetCancelBubble(PRBool aCancelBubble) = 0;
  61.  
  62.   /* readonly attribute boolean isChar; */
  63.   NS_IMETHOD GetIsChar(PRBool *aIsChar) = 0;
  64.  
  65. };
  66.  
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSIDOMNSUIEVENT \
  69.   NS_IMETHOD GetPreventDefault(PRBool *_retval); \
  70.   NS_IMETHOD GetLayerX(PRInt32 *aLayerX); \
  71.   NS_IMETHOD GetLayerY(PRInt32 *aLayerY); \
  72.   NS_IMETHOD GetPageX(PRInt32 *aPageX); \
  73.   NS_IMETHOD GetPageY(PRInt32 *aPageY); \
  74.   NS_IMETHOD GetWhich(PRUint32 *aWhich); \
  75.   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent); \
  76.   NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset); \
  77.   NS_IMETHOD GetCancelBubble(PRBool *aCancelBubble); \
  78.   NS_IMETHOD SetCancelBubble(PRBool aCancelBubble); \
  79.   NS_IMETHOD GetIsChar(PRBool *aIsChar); 
  80.  
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  82. #define NS_FORWARD_NSIDOMNSUIEVENT(_to) \
  83.   NS_IMETHOD GetPreventDefault(PRBool *_retval) { return _to GetPreventDefault(_retval); } \
  84.   NS_IMETHOD GetLayerX(PRInt32 *aLayerX) { return _to GetLayerX(aLayerX); } \
  85.   NS_IMETHOD GetLayerY(PRInt32 *aLayerY) { return _to GetLayerY(aLayerY); } \
  86.   NS_IMETHOD GetPageX(PRInt32 *aPageX) { return _to GetPageX(aPageX); } \
  87.   NS_IMETHOD GetPageY(PRInt32 *aPageY) { return _to GetPageY(aPageY); } \
  88.   NS_IMETHOD GetWhich(PRUint32 *aWhich) { return _to GetWhich(aWhich); } \
  89.   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) { return _to GetRangeParent(aRangeParent); } \
  90.   NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) { return _to GetRangeOffset(aRangeOffset); } \
  91.   NS_IMETHOD GetCancelBubble(PRBool *aCancelBubble) { return _to GetCancelBubble(aCancelBubble); } \
  92.   NS_IMETHOD SetCancelBubble(PRBool aCancelBubble) { return _to SetCancelBubble(aCancelBubble); } \
  93.   NS_IMETHOD GetIsChar(PRBool *aIsChar) { return _to GetIsChar(aIsChar); } 
  94.  
  95. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  96. #define NS_FORWARD_SAFE_NSIDOMNSUIEVENT(_to) \
  97.   NS_IMETHOD GetPreventDefault(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreventDefault(_retval); } \
  98.   NS_IMETHOD GetLayerX(PRInt32 *aLayerX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerX(aLayerX); } \
  99.   NS_IMETHOD GetLayerY(PRInt32 *aLayerY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerY(aLayerY); } \
  100.   NS_IMETHOD GetPageX(PRInt32 *aPageX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageX(aPageX); } \
  101.   NS_IMETHOD GetPageY(PRInt32 *aPageY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageY(aPageY); } \
  102.   NS_IMETHOD GetWhich(PRUint32 *aWhich) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWhich(aWhich); } \
  103.   NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeParent(aRangeParent); } \
  104.   NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRangeOffset(aRangeOffset); } \
  105.   NS_IMETHOD GetCancelBubble(PRBool *aCancelBubble) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelBubble(aCancelBubble); } \
  106.   NS_IMETHOD SetCancelBubble(PRBool aCancelBubble) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCancelBubble(aCancelBubble); } \
  107.   NS_IMETHOD GetIsChar(PRBool *aIsChar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsChar(aIsChar); } 
  108.  
  109. #if 0
  110. /* Use the code below as a template for the implementation class for this interface. */
  111.  
  112. /* Header file */
  113. class nsDOMNSUIEvent : public nsIDOMNSUIEvent
  114. {
  115. public:
  116.   NS_DECL_ISUPPORTS
  117.   NS_DECL_NSIDOMNSUIEVENT
  118.  
  119.   nsDOMNSUIEvent();
  120.  
  121. private:
  122.   ~nsDOMNSUIEvent();
  123.  
  124. protected:
  125.   /* additional members */
  126. };
  127.  
  128. /* Implementation file */
  129. NS_IMPL_ISUPPORTS1(nsDOMNSUIEvent, nsIDOMNSUIEvent)
  130.  
  131. nsDOMNSUIEvent::nsDOMNSUIEvent()
  132. {
  133.   /* member initializers and constructor code */
  134. }
  135.  
  136. nsDOMNSUIEvent::~nsDOMNSUIEvent()
  137. {
  138.   /* destructor code */
  139. }
  140.  
  141. /* boolean getPreventDefault (); */
  142. NS_IMETHODIMP nsDOMNSUIEvent::GetPreventDefault(PRBool *_retval)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* readonly attribute long layerX; */
  148. NS_IMETHODIMP nsDOMNSUIEvent::GetLayerX(PRInt32 *aLayerX)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* readonly attribute long layerY; */
  154. NS_IMETHODIMP nsDOMNSUIEvent::GetLayerY(PRInt32 *aLayerY)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* readonly attribute long pageX; */
  160. NS_IMETHODIMP nsDOMNSUIEvent::GetPageX(PRInt32 *aPageX)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* readonly attribute long pageY; */
  166. NS_IMETHODIMP nsDOMNSUIEvent::GetPageY(PRInt32 *aPageY)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* readonly attribute unsigned long which; */
  172. NS_IMETHODIMP nsDOMNSUIEvent::GetWhich(PRUint32 *aWhich)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* readonly attribute nsIDOMNode rangeParent; */
  178. NS_IMETHODIMP nsDOMNSUIEvent::GetRangeParent(nsIDOMNode * *aRangeParent)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* readonly attribute long rangeOffset; */
  184. NS_IMETHODIMP nsDOMNSUIEvent::GetRangeOffset(PRInt32 *aRangeOffset)
  185. {
  186.     return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188.  
  189. /* attribute boolean cancelBubble; */
  190. NS_IMETHODIMP nsDOMNSUIEvent::GetCancelBubble(PRBool *aCancelBubble)
  191. {
  192.     return NS_ERROR_NOT_IMPLEMENTED;
  193. }
  194. NS_IMETHODIMP nsDOMNSUIEvent::SetCancelBubble(PRBool aCancelBubble)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* readonly attribute boolean isChar; */
  200. NS_IMETHODIMP nsDOMNSUIEvent::GetIsChar(PRBool *aIsChar)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204.  
  205. /* End of implementation class template. */
  206. #endif
  207.  
  208.  
  209. #endif /* __gen_nsIDOMNSUIEvent_h__ */
  210.